package com.haogu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 产品实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_crm_product")
public class Product {
    @TableId(type = IdType.AUTO)
    private Integer id;//产品编号
    private Integer categoryId;//分类
    private String name;//产品名称
    private Integer creatorUserId;//创建者
//    private String username;
    private Float costPrice;//成本价
    private Float suggestedPrice;//建议售价
    private String developmentTeam;//开发团队
    private Date developmentTime;//开发时间
    private String link;//链接
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private Date createTime;//创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;//更新时间
    private String description;//产品描述
    @TableLogic
    private Integer delete_status;//删除状态
}
